package com.example.admin.yuejian21.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;

import com.example.admin.yuejian21.Bean.Concern;
import com.example.admin.yuejian21.R;
<<<<<<< HEAD
import com.example.admin.yuejian21.activity.AboutActivity;
import com.example.admin.yuejian21.activity.ConcernActivity;
import com.example.admin.yuejian21.activity.SetActivity;
import com.example.admin.yuejian21.activity.ShowlistActivity;
import com.example.admin.yuejian21.activity.orderActivity;
=======

>>>>>>> 2e6d2ff2e3331c5e86ecd66212336d2d1a6d7e80

import static com.example.admin.yuejian21.activity.LoginActivity.photo;
import static com.example.admin.yuejian21.activity.LoginActivity.username;

/**
 * A simple {@link Fragment} subclass.
 */
public class WoFragment extends Fragment {
    private ImageView View;
    private TextView usernameView;
    private Button aboutButton;
    private Button stButton;
   private ImageButton concernButton;
   private ImageButton orderButton;
    private  ImageButton showButton;

    public WoFragment() {
        // Required empty public constructor
    }
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
<<<<<<< HEAD
        View =
                (ImageView) view.findViewById(R.id.imageView_userpic);
        usernameView = (TextView) view.findViewById(R.id.textView_uname1);
       usernameView.setText(username);
        aboutButton= (Button) view.findViewById(R.id.about);
        stButton= (Button) view.findViewById(R.id.button_seting);
        concernButton= (ImageButton) view.findViewById(R.id.concern);
        orderButton= (ImageButton) view.findViewById(R.id.dingdan);
        showButton= (ImageButton) view.findViewById(R.id.id_tab_post_img);
        concernButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getActivity(), ConcernActivity.class);
                startActivity(intent);

            }
        });
        orderButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getActivity(), orderActivity.class);
                startActivity(intent);

            }
        });
        showButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getActivity(), ShowlistActivity.class);
                startActivity(intent);

            }
        });

       aboutButton.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               Intent intent=new Intent(getActivity(), AboutActivity.class);
               startActivity(intent);


           }
       });
        stButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getActivity(), SetActivity.class);
                startActivity(intent);


            }
        });
    }
=======
>>>>>>> 2e6d2ff2e3331c5e86ecd66212336d2d1a6d7e80


}}
